package client;

import client.ui.view.MainPage;

import javax.swing.*;
import java.awt.*;

public class Main {
    public static void main(String[] args){
        //ui采用系统风格
        try{
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        } catch (Exception e){
            e.printStackTrace();
        }
        UserState.initData();
        //开线程更新ui
        SwingUtilities.invokeLater(new Runnable() {
            @Override
            public void run() {
                JFrame mainFrame = new MainPage();
                mainFrame.setSize(new Dimension(1280,680));
                mainFrame.setVisible(true);
            }
        });
    }
}
